package com.dao.primary.sys;

import com.model.pojo.sys.SysGenTableColumn;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysGenTableColumnMapper {
    int deleteByPrimaryKey(Long sysGenTableColumnId);

    int insert(SysGenTableColumn record);

    int insertSelective(SysGenTableColumn record);

    SysGenTableColumn selectByPrimaryKey(Long sysGenTableColumnId);

    int updateByPrimaryKeySelective(SysGenTableColumn record);

    int updateByPrimaryKey(SysGenTableColumn record);

    /**
     * 从information_schema.columns获取某表的字段信息
     * */
    List<SysGenTableColumn> selectDBList(@Param("tableName") String tableName);

    List<SysGenTableColumn> selectBSysGenTableId(Long sysGenTableId);

    int updateByColumnName(SysGenTableColumn record);

    int deleteBySysGenTableId(Long sysGenTableId);
}